<%--
  Created by IntelliJ IDEA.
  User: 栋
  Date: 2022/11/15
  Time: 14:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>主页</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <%@include file="/pages/base/base.jsp"%>
</head>
<body>
<div class="container">
    <%@include file="/pages/base/head.jsp"%>
    <%@include file="/pages/base/topnav_afterLogin.jsp"%>
    <%@include file="/pages/base/search.jsp"%>
    <c:forEach items="${sessionScope.items}" var="item">
        <div class="responsive">
            <div class="img">
                <a target="_blank" href="itemServlet?action=showItemInfor&item_id=${item.item_id}">
                    <img src="${item.item_img}" alt="${item.item_name}" width="300" height="200">
                    <div class="name">${item.item_name}</div>
                    <div class="desc">${item.item_introduce}</div>
                    <div class="count">剩余：${item.item_count}</div>
                    <div class="price">￥${item.item_price}</div>
                </a>
            </div>
        </div>
    </c:forEach>
</div>
</body>
</html>
